function changePwd() {
    var _pwd = $("#password");
    var _newPwd = $("#newPwd");
    var _rePwd = $("#rePwd");
    var password = $.trim(_pwd.val());
    var newPwd = $.trim(_newPwd.val());
    var rePwd = $.trim(_rePwd.val());
    if (password === "") {
        _pwd.focus();
        new $.zui.Messager('密码不能为空哦。', {
            icon: 'bell',
            placement: 'bottom-right'
        }).show();
        return;
    }
    if (newPwd === "") {
        _newPwd.focus();
        new $.zui.Messager('密码不能为空哦。', {
            icon: 'bell',
            placement: 'bottom-right'
        }).show();
        return;
    }
    if (newPwd !== rePwd) {
        _rePwd.focus();
        new $.zui.Messager('两次密码要一样哦。', {
            icon: 'bell',
            placement: 'bottom-right'
        }).show();
        return;
    }
    $.post("/user/changePwd", {password: password, newPwd: newPwd}, function (nm) {
        if (nm.ok) {
            window.location.href = "/user/logout";
        } else {
            _pwd.val("").focus();
            new $.zui.Messager('原密码不正确哦。', {
                icon: 'bell',
                placement: 'bottom-right'
            }).show();
        }
    })
}